package com.bdmc.report.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.bdmc.common.convert.LocalDateConverter;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

;

/**
 * 工作时间距离统计视图对象 report_person_miles
 *
 * @author bdmc
 * @date 2022-08-11
 */
@Data
@ExcelIgnoreUnannotated
public class ReportPersonMilesVo {

	private static final long serialVersionUID = 1L;
	
	private Integer deptId;
	
	@ExcelProperty(value = "部门名称")
	private String deptName;
	
	private Integer PersonMilesId;
	
	private Integer personId;

	@ExcelProperty(value = "人员名称")
	private String personName;
	
	@ExcelProperty(value = "工作距离/km")
	private BigDecimal miles;

	@ExcelProperty(value = "工作区域")
	private String fenceName;
	
	@ExcelProperty(value = "数据日期", converter = LocalDateConverter.class)
	@JsonFormat(pattern = "yyyy-MM-dd")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDate dataTime;
	
	@ExcelProperty(value = "工作时长/分钟")
	private Integer workTime;


}
